﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace B.S.BasicData.Domain.Entities
{
    /// <summary>
    /// 所有实体类的基类(父类)
    /// </summary>
    public class BaseEntity
    {
        /// <summary>
        /// 主键字段
        /// </summary>
        [Key]//主键
        [DatabaseGenerated(DatabaseGeneratedOption.None)]//自定义主键的值(雪花id、Guid)
        public long Id { get; set; }
        /// <summary>
        /// 逻辑删除字段  0:正常  1:已逻辑删除
        /// </summary>
        public bool IsDeleted { get; set; }

    }
}
